//---------------------------------------------------------------------------

#ifndef FormMainH
#define FormMainH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include "DBGridEh.hpp"
#include "DBGridEhGrouping.hpp"
#include "GridsEh.hpp"
#include "FIBDatabase.hpp"
#include "FIBDataSet.hpp"
#include "pFIBDatabase.hpp"
#include "pFIBDataSet.hpp"
#include <Data.DB.hpp>
#include <Vcl.Menus.hpp>
#include "pFIBErrorHandler.hpp"
#include <Vcl.ImgList.hpp>
#include <Vcl.ToolWin.hpp>
#include "PropStorageEh.hpp"
#include "PropFilerEh.hpp"
#include <Vcl.AppEvnts.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.Controls.hpp>
#include "SIBEABase.hpp"
#include "SIBFIBEA.hpp"
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published:        // IDE-managed Components
        TpFIBDatabase *RemoteDatabase;
        TMainMenu *MainMenu;
        TMenuItem *ListsMenu;
        TMenuItem *ItemCategoriesMenu;
        TpFibErrorHandler *FIBErrorHandler;
        TMenuItem *ItemKindsMenu;
        TMenuItem *ItemBasicUnitsMenu;
        TMenuItem *DrugDosageFormsMenu;
        TMenuItem *PharmacepticalGroupsMenu;
        TMenuItem *ItemsMenu;
        TMenuItem *DrugsGenericNamesMenu;
        TMenuItem *NewMenu;
        TToolBar *ToolBar1;
        TImageList *ToolbarImageList;
        TToolButton *ItemsToolButton;
        TToolButton *ToolButton2;
        TToolButton *InboundsToolButton;
        TToolButton *ToolButton4;
        TToolButton *OutboundsToolButton;
        TToolButton *ToolButton6;
        TRegPropStorageManEh *RegPropStorageManEh;
        TPropStorageEh *PropStorageEh;
        TApplicationEvents *ApplicationEvents;
        TMenuItem *AdminMenu;
        TMenuItem *ReportsViewerMenu;
        TStatusBar *StatusBar;
        TMenuItem *N1;
        TMenuItem *N2;
        TMenuItem *ChangeUserMenu;
        TMenuItem *SendCommonReport;
        TMenuItem *Offline1;
        TMenuItem *ExitMenu;
        TMenuItem *N3;
        void __fastcall ItemCategoriesMenuClick(TObject *Sender);
        void __fastcall FIBErrorHandlerFIBErrorEvent(TObject *Sender, EFIBError *ErrorValue,
          TKindIBError KindIBError, bool &DoRaise);
        void __fastcall ItemKindsMenuClick(TObject *Sender);
        void __fastcall ItemBasicUnitsMenuClick(TObject *Sender);
        void __fastcall DrugDosageFormsMenuClick(TObject *Sender);
        void __fastcall PharmacepticalGroupsMenuClick(TObject *Sender);
        void __fastcall ItemsMenuClick(TObject *Sender);
        void __fastcall DrugsGenericNamesMenuClick(TObject *Sender);
        void __fastcall ItemsToolButtonClick(TObject *Sender);
        void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
        void __fastcall FormShow(TObject *Sender);
        void __fastcall FormHide(TObject *Sender);
        void __fastcall ApplicationEventsMessage(tagMSG &Msg, bool &Handled);
        void __fastcall ReportsViewerMenuClick(TObject *Sender);
        void __fastcall SendCommonReportClick(TObject *Sender);
        void __fastcall ExitMenuClick(TObject *Sender);
        void __fastcall ChangeUserMenuClick(TObject *Sender);
        void __fastcall RemoteDatabaseAfterConnect(TObject *Sender);
        void __fastcall ApplicationEventsDeactivate(TObject *Sender);
        void __fastcall ApplicationEventsActivate(TObject *Sender);
private:        // User declarations
        TForm* LastActiveForm;
public:                // User declarations
        __fastcall TMainForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif
